home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c,comp.lang.c++
- Subject: Re: H E L P
- Date: 2 Apr 1996 15:35:45 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4js6jh$ndr@solutions.solon.com>
- References: <N.040296.013047.18@DynamicPPP-185.HIP.CAM.ORG> <Pine.A32.3.91.960402135001.121719B-100000@green.weeg.uiowa.edu>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <Pine.A32.3.91.960402135001.121719B-100000@green.weeg.uiowa.edu>,
- The Amorphous Mass <robinson@blue.weeg.uiowa.edu> wrote:
- >On Tue, 2 Apr 1996 ramrod@cam.org wrote:
-
- >> The part that I am having a hard time with is the part that
- >> whatever number I enter for the age, I'm supposed to get the same number
- >> of happy faces, automatically. For example If I say I am 45 years old,
- >> then the program should show 45 happy faces.
-
- > You need a loop. Look up the for, while, and do while loop constructs in
- >your textbook.
-
- This is a bit strong. You don't *need* a loop. You just probably want one.
-
- Obviously, if you're assuming age, you would have no more than about 150 ifs
- to test, (assuming humans), and if you just want to do it for 45, it's even
- easier.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-